import "~/styles/globals.css";
import { Inter } from "next/font/google";
import Providers from "~/providers";
import App from "~/components/App";

const inter = Inter({
  subsets: ["latin"],
  variable: "--font-sans",
});

export const metadata = {
  title: "在线教育平台",
  description: "一个基于 Next.js 的在线教育平台",
  icons: [{ rel: "icon", url: "/favicon.ico" }],
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="zh-CN">
      <body className={`font-sans ${inter.variable}`}>
        <App>
          <Providers>{children}</Providers>
        </App>
      </body>
    </html>
  );
}
